package com.sunnyweather.android.ui.weather;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.sunnyweather.android.R;

public class WeatherActivity extends AppCompatActivity {
    private TextView title;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_weather);
        title = findViewById(R.id.placeName);

        Intent intent = getIntent();
        String place_name = intent.getStringExtra("place_name");

        if (place_name != null) {
            title.setText(place_name);
        }


    }
}